package com.jishuo.nontax.bean.vo;

import com.jishuo.nontax.bean.message.SetUnitVsItemDTO;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;



/**
 * 单位与项目挂接
 * 
 * @author hlp
 * @email 1459875748@qq.com
 * @date 2023-02-02 10:13:13
 */
@Data
public class UnitvsitemVO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//唯一标识号
	private Long relationid;
	//单位唯一标识号
	private Long unitid;
	//项目唯一标识号
	private Long itemid;
	//是否可用
	private Integer isenable;
	//操作时间
	private String writetime;

	public UnitvsitemVO(){}

    public UnitvsitemVO(SetUnitVsItemDTO bean){
	    if(bean.getRelationid()!=null){
            this.relationid =Long.valueOf(bean.getRelationid());
        }
        if(bean.getUnitid()!=null){
            this.unitid =Long.valueOf(bean.getUnitid());
        }
        if(bean.getItemid()!=null){
            this.itemid =Long.valueOf(bean.getItemid());
        }
    }
}
